package 曾世昌12_3;

interface Inter {
    void show();
}

class Outer {
   public static Inter method(){
      return new Inter() {
           @Override
           public void show() {
               System.out.println( "hello word" );
           }
       };
   }
}
 class Outers {
     public static void main(String[] args) {
         Outer.method().show();
     }
}